package Entity;

import java.io.Serializable;

@SuppressWarnings("serial")
public class Message implements Serializable {
	/**
	 * 
	 */

	private int opCode;
	private int messageID;
	private Object dataGram;
	 /**
	  * constructors 
	  * @param opCode
	  * @param messageID
	  * @param dataGram
	  */
	public Message(int opCode, int messageID, Object dataGram) {
		//super();
		//System.out.println("wow message created");
		this.opCode = opCode;
		this.messageID = messageID;
		this.dataGram = dataGram;
	}
	
	public int getOpCode() {
		return opCode;
	}
	
	public void setOpCode(int opCode) {
		this.opCode = opCode;
	}
	
	public int getMessageID() {
		return messageID;
	}
	
	public void setMessageID(int messageID) {
		this.messageID = messageID;
	}
	
	public Object getDataGram() {
		return dataGram;
	}
	
	public void setDataGram(Object dataGram) {
		this.dataGram = dataGram;
	}

	@Override
	/*
	 * (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	public String toString() {
		return "Message [opCode=" + opCode + ", messageID=" + messageID
				+ ", dataGram=" + dataGram + "]";
	}
	 
}
